package main

import (
	"os"
	"io/ioutil"
	"fmt"
	"strings"
)

func main() {
	counts := make(map[string]int)
	for _, args := range os.Args[1:] {
		data, err := ioutil.ReadFile(args)
		if err != nil {
			fmt.Fprintf(os.Stderr,"%v\n",err)
		}
		for _,v :=range strings.Split(string(data),"\n") {
			counts["filename:"+args+"-"+v]++
		}
	}

	for k,v :=range counts {
		fmt.Println(k,"--",v)
	}
}
